package com.gears_software.sxdc.dccx.ui.util;

import android.content.Context;

import com.afollestad.materialdialogs.MaterialDialog;

/**
 * Created by chezhenzhen on 2017/8/2.
 */

public class MaterialDialogProgress {

    public MaterialDialog progress;
    Context context;

    public MaterialDialogProgress(Context context) {
        this.context = context;

    }

    public void show(String title) {
        progress = new MaterialDialog.Builder(context).content(title).canceledOnTouchOutside(false)
                .progress(true, 0).show();

    }

    public void dismiss() {
        progress.dismiss();
    }
}
